package cn.com.qiter.staservice.client;

import cn.com.qiter.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient("service-order")
public interface TrafficClient {
    //查询 交通作业 数量
    @GetMapping("/eduorder/traffic/countDay/{day}")
    public Result countTrafficDay(@PathVariable("day") String day);

    //通用统计
    @GetMapping("/eduorder/other/countDay/{day}")
    public Result countOtherDay(@PathVariable("day") String day);
    @GetMapping("/eduorder/other/countDay/{day}/{projectId}")
    public Result countOtherDay(@PathVariable("day") String day,@PathVariable("projectId") String projectId);
    @GetMapping("/eduorder/other/countDay/{day}/{projectId}/{memberId}")
    public Result countOtherDay(@PathVariable("day") String day,@PathVariable("projectId") String projectId,@PathVariable("memberId") String memberId);

    //视频业务统计
    @GetMapping("/eduorder/video/countDay/{day}")
    public Result countVideoDay(@PathVariable("day") String day);
    @GetMapping("/eduorder/video/countDay/{day}/{projectId}")
    public Result countVideoDay(@PathVariable("day") String day,@PathVariable("projectId") String projectId);
    @GetMapping("/eduorder/video/countDay/{day}/{projectId}/{memberId}")
    public Result countVideoDay(@PathVariable("day") String day,@PathVariable("projectId") String projectId,@PathVariable("memberId") String memberId);

}
